import 'package:flutter/material.dart';
import 'package:flutter_house_manager/pages/home/HomeList.dart';
import 'package:flutter_house_manager/pages/home/home_nav.dart';

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<StatefulWidget> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  int selectedIndex = 0;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text("享+社区"),
          centerTitle: true,
        ),
        body: ListView(
          scrollDirection: Axis.vertical,
          children: [
            const HomeNav(),
            Image.asset("assets/images/image.png"),
            const HomeList(),
          ],
        ));
  }
}
